<template>
    <div>
        <div class="backgroundColor">
            <div class="left">
                <ul>
                    <li>小米商城</li>
                    <li>MIUI</li>
                    <li>loT</li>
                    <li>云服务</li>
                    <li>金融</li>
                    <li>有品</li>
                    <li>小爱开放平台</li>
                </ul>
            </div>
            <div class="right">
                <div class="white">登录</div>
                <el-button type="warning" icon="el-icon-shopping-cart-full">购物车</el-button>
            </div>
        </div>
        <div class="title">
            <div class="leftAside">
                <div class="border"><img src="../../imgs/mi-logo.png" alt=""></div>
            </div>
            <div class="middleAside">
                <el-dropdown>
                    <span class="el-dropdown-link">电视</span>
                    <el-dropdown-menu slot="dropdown">
                        <el-dropdown-item>
                            <div class="boxSize">
                                <img src="../../imgs/nav-img/nav-3-1.jpg" alt="">
                                <div>小米壁画电视 66英寸</div>
                                <div>6999</div>
                            </div>
                        </el-dropdown-item>
                        <el-dropdown-item>
                            <div class="boxSize">
                                <img src="../../imgs/nav-img/nav-3-2.jpg" alt="">
                                <div>小米全面屏电视 55英寸</div>
                                <div>1899</div>
                            </div>
                        </el-dropdown-item>
                        <el-dropdown-item>
                            <div class="boxSize">
                                <img src="../../imgs/nav-img/nav-3-3.png" alt="">
                                <div>小米电视4A 32英寸</div>
                                <div>799</div>
                            </div>
                        </el-dropdown-item>
                        <el-dropdown-item>
                            <div class="boxSize">
                                <img src="../../imgs/nav-img/nav-3-4.jpg" alt="">
                                <div>小米电视4A 55英寸</div>
                                <div>1299</div>
                            </div>
                        </el-dropdown-item>
                        <el-dropdown-item>
                            <div class="boxSize">
                                <img src="../../imgs/nav-img/nav-3-5.jpg" alt="">
                                <div>小米电视4A 65英寸</div>
                                <div>2799</div>
                            </div>
                        </el-dropdown-item>
                        <el-dropdown-item>
                            <div class="boxSize">
                                <img src="../../imgs/nav-img/nav-3-6.png" alt="">
                                <div>Redmi红米电视 70英寸 R70A</div>
                                <div>3499</div>
                            </div>
                        </el-dropdown-item>
                    </el-dropdown-menu>
                </el-dropdown>
                <el-dropdown>
                    <span class="el-dropdown-link">小米手机</span>
                    <el-dropdown-menu slot="dropdown">
                        <el-dropdown-item>
                            <div class="boxSize">
                                <img src="../../imgs/nav-img/nav-3-6.png" alt="">
                                <div>Redmi红米电视 70英寸 R70A</div>
                                <div>3499</div>
                            </div>
                        </el-dropdown-item>
                    </el-dropdown-menu>
                </el-dropdown>
                <el-dropdown>
                    <span class="el-dropdown-link">RedMi红米</span>
                    <el-dropdown-menu slot="dropdown">
                        <el-dropdown-item>
                            <div class="boxSize">
                                <img src="../../imgs/nav-img/nav-3-6.png" alt="">
                                <div>Redmi红米电视 70英寸 R70A</div>
                                <div>3499</div>
                            </div>
                        </el-dropdown-item>
                    </el-dropdown-menu>
                </el-dropdown>
                <el-dropdown>
                    <span class="el-dropdown-link">笔记本</span>
                    <el-dropdown-menu slot="dropdown">
                        <el-dropdown-item>
                            <div class="boxSize">
                                <img src="../../imgs/nav-img/nav-3-6.png" alt="">
                                <div>Redmi红米电视 70英寸 R70A</div>
                                <div>3499</div>
                            </div>
                        </el-dropdown-item>
                    </el-dropdown-menu>
                </el-dropdown>
                <el-dropdown>
                    <span class="el-dropdown-link">路由器</span>
                    <el-dropdown-menu slot="dropdown">
                        <el-dropdown-item>
                            <div class="boxSize">
                                <img src="../../imgs/nav-img/nav-3-6.png" alt="">
                                <div>Redmi红米电视 70英寸 R70A</div>
                                <div>3499</div>
                            </div>
                        </el-dropdown-item>
                    </el-dropdown-menu>
                </el-dropdown>
                <el-dropdown>
                    <span class="el-dropdown-link">家电</span>
                    <el-dropdown-menu slot="dropdown">
                        <el-dropdown-item>
                            <div class="boxSize">
                                <img src="../../imgs/nav-img/nav-3-6.png" alt="">
                                <div>Redmi红米电视 70英寸 R70A</div>
                                <div>3499</div>
                            </div>
                        </el-dropdown-item>
                    </el-dropdown-menu>
                </el-dropdown>
            </div>
            <div class="rightAside">
                <el-input placeholder="请输入内容" v-model="input1">
                    <el-button slot="append" icon="el-icon-search"></el-button>
                </el-input>
            </div>
        </div>
    </div>
</template>
<script>
export default {
    name:'NavHeader',
    data() {
        return {
            input1:'',
        }
    },
}
</script>
<style scoped>
    *{
        margin: 0;
        padding: 0;
        list-style: none;
    }
    .backgroundColor{
        background: black;
        height: 42px;
        display: flex;
        justify-content: space-between;
    }
    ul li{
        color: #acb1b2;
        float: left;
        font-size: 12px;
        line-height: 42px;
        padding: 0 12px 0 3px;
    }
    .right{
        display: flex;
    }
    .right .white{
        color: #acb1b2;
        font-size: 12px;
        line-height: 42px;
        padding: 0 20px;
    }
    .el-button--warning{
        background: #ff6501;
        padding: 0 20px;
        font-size: 12px;
        border-radius: 0;
        margin-right: 4px;
    }
    .border{
        width: 60px;
        height: 60px;
        background: #fc6600;
    }
    .border img{
        width: 60px;
        margin: 0 auto;
    }
    .boxSize{
        width: 180px;
        text-align: center;
    }
    .boxSize img{
        width: 160px;
    }
    .title{
        display: flex;
        justify-content: space-between;
        margin-top: 30px;
        line-height: 60px;
    }
    .rightAside{
        width: 300px;
    }
    .el-dropdown-link{
        font-weight: bold;
        color: black;
        font-size: 16px;
    }
    .el-dropdown-menu{
        position: absolute;
        top: 140px;
        left: 5px;
        margin: 0 auto;
    }
</style>
<style>
    .el-input-group__append .el-button, .el-input-group__append .el-select, .el-input-group__prepend .el-button, .el-input-group__prepend .el-select{
        margin: -10px -8px;
    }
</style>